package com.xunlai.infra.permission.storage.entity;

import lombok.*;
import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Table;

import java.io.Serial;
import java.io.Serializable;

/**
 * 部门
 * @author liang
 * @date 2022/11/30 20:11
 */
@Table("system_department")
@Data
@EqualsAndHashCode(callSuper = false)
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class Department extends BaseEntity implements Serializable {

    @Serial
    private static final long serialVersionUID = -8933910897268014426L;

    @Id
    private Long id;

    /**
     * 部门名称
     */
    private String departName;

    /**
     * 部门编码
     */
    private String departCode;

    /**
     * 部门负责人
     */
    private Long manager;

    /**
     * 显示排序
     */
    private Integer sort;

    private Boolean isCompany;

    /**
     * 父部门ID
     */
    private Long parentId;
}
